home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Klienci P2P / Multi / Shareaza 2.2.3.0 / Shareaza_2.2.3.0.exe / {app} / Templates / General Purple Collection / GeneralPurpleCollection.tpl < prev    next >
Text File  |  2006-07-17  |  4KB  |  131 lines

  1. <html>
  2.     <head>
  3.         <meta http-equiv="refresh" content="60">
  4.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5.         <title>Shareaza Collection File(GeneralPurpleCollection)</title>
  6.         <style>
  7.         p,div,td
  8.         {
  9.             font-family: Verdana;
  10.             font-size: 12px;
  11.         }
  12.         a
  13.         {
  14.             text-decoration: none;
  15.             font-weight: bold;
  16.             color: #FFD0E0;
  17.         }
  18.         a:hover
  19.         {
  20.             text-decoration: underline;
  21.         }
  22.         .info
  23.         {
  24.             font-size: 12px;
  25.             color: #C0A0A0;
  26.         }
  27.         .titlebar
  28.         {
  29.             background-color: #600030;
  30.             border-style: solid;
  31.             border-width: 0px 0px 1px 0px;
  32.             border-color: #A00080;
  33.             color: #FFD0E0;
  34.         }
  35.         .track
  36.         {
  37.             border: #8000A0 1px solid;
  38.             border-collapse: collapse;
  39.             padding: 3px;
  40.         }
  41.         .trackhdr
  42.         {
  43.             border: #A00080 1px solid;
  44.             border-collapse: collapse;
  45.             background: #600030;
  46.             font-weight: bold;
  47.             color: #FFD0E0;
  48.             padding: 3px;
  49.         }
  50.         .picframe
  51.         {
  52.             border: #A00080 1px solid;
  53.             padding: 1px;
  54.         }
  55.         </style>
  56.     </head>
  57.     <script language="javascript">
  58. function doPlay(sURN) { window.external.open(sURN); }
  59. function doDownload(sURN) { window.external.download(sURN); window.location.reload(); }
  60. function writeFile(sURN, sTitle,nFileSize)
  61. {
  62.     var sState = window.external.detect( sURN );
  63.     document.writeln( "<tr onmouseover='onMouseIn(this,\"" + sURN + "\")' onmouseout='onMouseOut(this)'>" );
  64.     document.writeln( "<td class='track' align='left'><b>" + sTitle + "</b></td>" );
  65.     document.writeln( "<td class='track' align='right'><b>" + nFileSize + "</b></td>" );
  66.     if ( sState == "Complete" )
  67.     {
  68.         document.writeln( "<td class='track' align='center' nowrap><a href='javascript:doPlay(\"" + sURN + "\")' title='$4$'>$4$</a>");
  69.     }
  70.     else if ( sState == "0.00%" )
  71.     {
  72.         document.writeln( "<td class='track' align='center'>$5$</td>" );
  73.     }
  74.     else if ( sState.indexOf( "%" ) >= 0 )
  75.     {
  76.         var nBarSize = 100;
  77.         var nBarUsed = Math.round( parseFloat( sState ) / 100 * nBarSize );
  78.         document.writeln( "<td class='track' align='center'><img src='bar_on.gif' width='" + nBarUsed + "' height='12' alt='" + sState + "'><img src='bar_off.gif' width='" + ( nBarSize - nBarUsed ) + "' height='12' alt='" + sState + "'></td>" );
  79.     }
  80.     else
  81.     {
  82.         //var sMagnet = "magnet:?xt=" + sURN + "&dn=" + escape(sFilename);
  83.         document.writeln( "<td class='track' align='center'><a href='javascript:doDownload(\"" + sURN + "\")' title='$6$'>$6$</a></td>" );
  84.     }
  85.     document.writeln( "</tr>" );
  86. }
  87. function onMouseIn(el,sURN)
  88. {
  89.     el.style.backgroundColor = "#300060";
  90.     window.external.hover(sURN);
  91. }
  92. function onMouseOut(el)
  93. {
  94.     el.style.backgroundColor = "";
  95.     window.external.hover("");
  96. }
  97.     </script>
  98.     <body text="white" bgColor="#300000" leftMargin="0" topMargin="0">
  99.         <table width="100%" cellpadding="0" cellspacing="0" height="56" background="title_back.gif">
  100.             <tr>
  101.                 <td width="78"><a href="http://www.shareaza.com/download"><img src="icon.gif" width="72" height="72" border="0" alt="Download Shareaza"></a></td>
  102.                 <td align="center" valign="top" style="padding: 3px"><b>$1$</b></td>
  103.             </tr>
  104.         </table>
  105.         <table width="100%" cellpadding="0" cellspacing="0" ID="Table1">
  106.             <tr>
  107.                 <div class="info">
  108.                 $2$
  109.                 </div>
  110.             </tr>
  111.             <tr>
  112.                 <td width="100%" valign="top">
  113.                     <table width="100%" cellPadding="4" class="track">
  114.                         <tr>
  115.                             <td class="trackhdr" align="center" width="*">Title</td>
  116.                             <td class="trackhdr" align="center" width="110">Size</td>
  117.                             <td class="trackhdr" align="center" width="30%">Status</td>
  118.                         </tr>
  119.                         <tr>
  120.                             <script language="javascript">
  121. $data$
  122.                             </script>
  123.                         </tr>
  124.                     </table>
  125.                 </td>
  126.             </tr> 
  127.         </table>
  128.         $3$
  129.     </body>
  130. </html>
  131.